package com.demo.dto;

public class OrderCondition {
	private String sortName = null;
	private String sortOrder = null;
	public static final String ASC = "asc";
	public static final String DESC = "desc";
	public OrderCondition(String sortName, String sortOrder) {
		if (!ASC.equals(sortOrder) && !DESC.equals(sortOrder)) {
			return ;
		}
		this.sortName = sortName;
		this.sortOrder = sortOrder;
	}
	public String getSortName() {
		return sortName;
	}
	public void setSortName(String sortName) {
		this.sortName = sortName;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
}
